<#include "overall_header.html">

						<h1>${L("nav.userview")} - ${se_page.user.name}</h1>
						<p>${se_page.user.email}</p>

						<table cellspacing="1">
							<caption>${L("user.account-basic-information")}</caption>
							<colgroup>
								<col width="130" class="col1"><col width="250" class="col2"><col width="130" class="col1"><col class="col2">
							</colgroup>
							<tbody>
								<tr>
									<td>${L("user.userid")}</td>
									<td>${se_page.user.id}</td>
									<td>${L("user.register-time")}</td>
									<td>${se_page.user.createTime?string("yyyy-MM-dd HH:mm")}</td>
								</tr>
								<tr>
									<td>${L("user.language")}</td>
									<td>${se_page.languages[se_page.user.language].localName}</td>
									<td>${L("user.timezone")}</td>
									<td>${L("global.timezone."+se_page.user.timezone?string("0.00"))}</td>
								</tr>
							</tbody>
						</table>

						<table cellspacing="1">
							<caption>${L("user.projects")}</caption>
							<colgroup>
								<col width="50%"><col width="50%">
							</colgroup>
							<tbody>
								<tr>
									<td>

										<#if se_page.user.projectUsers?? && se_page.user.projectUsers?size &gt; 0>
										<table cellspacing="1">
											<colgroup>
												<col width="130" class="col1"><col class="col2">
											</colgroup>
											<tbody>
												<#list se_page.user.projectUsers as projectUser> 
												<tr>
													<td>${projectUser.project.name}</td>
													<td>${L("project.role."+projectUser.role)}</td>
												</tr>
												</#list>
											</tbody>
										</table>
										</#if>

									</td>
									<td>

									</td>
								</tr>

							</tbody>
						</table>

						<table cellspacing="1">
							<caption>${L("ticket.unclosed-tickets")}</caption>
							<thead>
								<tr>
									<th width="50">${L("ticket.id")}</th>
									<th width="100">${L("project")}</th>
									<th width="50">${L("ticket.priority")}</th>
									<th width="50">${L("ticket.status")}</th>
									<th>${L("ticket.subject")}</th>
									<th width="80">${L("ticket.owner")}</th>
									<th width="100">${L("ticket.creator")}</th>
									<th width="100">${L("ticket.due-date")}</th>
									<th width="120">${L("ticket.update-time")}</th>
								</tr>
							</thead>
							<tbody>
								<#list se_page.tickets as ticket> 
								<tr class="row<#if (ticket_index % 2) == 0>1<#else>2</#if>">
									<td>${ticket.id}</td>
									<td><#if ticket.project??>${ticket.project.name}<#else>${ticket.projectId}</#if></td>
									<td>${L("ticket.priority."+ticket.priority)}</td>
									<td>${L("ticket.status."+ticket.status)}</td>
									<td><a href="${sf_configs.root_path}/ticketview${sf_configs.extension}?id=${ticket.id}">${ticket.subject}</a></td>
									<td>
										<#if ticket.owner??>${ticket.owner.name}</#if>
									</td>
									<td><#if ticket.creator??><a href="${sf_configs.root_path}/userview${sf_configs.extension}?id=${ticket.creatorId}">${ticket.creator.name}</#if></td>
									<td><#if ticket.dueDate??><span class="timestamp" <#if .now?date &gt; ticket.dueDate?date> style="color:#990000;"</#if>>${ticket.dueDate?string("yyyy-MM-dd")}</span></#if></td>
									<td><span class="timestamp">${ticket.updateTime?string("yyyy-MM-dd HH:mm")}</span></td>
								</tr>
								</#list>
							</tbody>
						</table>

<#include "overall_footer.html">